<template>
  <view>
    <!-- #ifdef H5 -->
    <iframe :src="url" style="width:100%;height:100vh;border:none;"></iframe>
    <!-- #endif -->
    
    <!-- #ifdef MP-WEIXIN -->
    <web-view :src="url"></web-view>
    <!-- #endif -->
  </view>
</template>

<script>
export default {
  data() {
    return {
      url: ''
    }
  },
  onLoad(options) {
    this.url = decodeURIComponent(options.url || '');
  }
}
</script>